<?php /* Smarty version 2.6.10, created on 2007-07-02 19:20:22
         compiled from inputpage.tpl */ ?>
<html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en">
<head>
	<title>rFactor-report by Frank Wynants</title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<link type="text/css" href="style/generate-report.css" rel="stylesheet" media="screen" />
</head>
<body>
<div id="generateReport">

	<div id="support">
		<h1>
			rFactor-report by Frank Wynants <a href="http://code.google.com/p/rfactor-report/">
			<img src="google.png" alt="Google code logo" />
			</a>
		</h1>
		<h2>Donate</h2>
		<div id="paypal">
			<p>If you like this program please show your appreciation by donating.</p>
			<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
			<div>
				<input type="hidden" class="hidden" name="cmd" value="_xclick" />
				<input type="hidden" class="hidden" name="business" value="frank.wynants@gmail.com" />
				<input type="hidden" class="hidden" name="no_shipping" value="2" />
				<input type="hidden" class="hidden" name="no_note" value="1" />
				<input type="hidden" class="hidden" name="currency_code" value="EUR" />
				<input type="hidden" class="hidden" name="tax" value="0" />
				<input type="hidden" class="hidden" name="lc" value="BE" />
				<input type="hidden" class="hidden" name="bn" value="PP-DonationsBF" />
				<input class="paypalimage" type="image" src="https://www.paypal.com/nl_NL/i/btn/x-click-but04.gif" name="submit" alt="Betalingen verrichten met PayPal is snel, gratis en veilig!" />
				<img src="https://www.paypal.com/nl_NL/i/scr/pixel.gif" alt="" />
			</div>
			</form>
		</div><!--paypal-->
		<h2>Index</h2>
		<p>
			If you find any problems in this report please send an email to <a href="mailto:frank.wynants@gmail.com">frank.wynants@gmail.com</a>.
			I will look into the problem as soon as possible.
		</p>
		<p>
			Be sure to take a look at <a href="http://www.vrl-simracing.be/lfsreport">LFS-report</a> if you are a &#39;Live for Speed&#39; player.
		</p>
	</div><!--support-->


	<h2>Welcome</h2>
	<p>
		This website is used to convert <a href="http://www.rfactor.net">rFactor</a> result files to human-readably webpage.
	</p>
	<p>
		If you encounter any problems feel free to contact me at 
		<a href="mailto:frank.wynants@gmail.com">frank.wynants@gmail.com</a> using email or google-talk and I will try and solve the problem
		(please provide the racecast URL you used).
	</p>
	<h2>Generate report</h2>
	<div>
		<form method="get" action="index.php">
		<div>
			<label for="qualyfile">Qualification raceresult URL :</label>
			<input type="text" id="qualyfile" name="qualyfile" size="70" />
			<label for="racefile">Race raceresult URL :</label>
			<input type="text" id="racefile" name="racefile" size="70" />
			<input type="hidden" class="hidden" name="cssstyle" value="<?php echo $this->_tpl_vars['cssstyle']; ?>
" />
			<input type="submit" class="button" value="Submit"/>
		</div>
		</form>
	</div>
	<p>OR</p>
	<div>
	<form method="get" action="index.php">
	<div>
		<label for="file">Combined result URL :</label>
		<input type="text" id="file" name="file" size="70" />
		<input type="hidden" class="hidden" name="cssstyle" value="<?php echo $this->_tpl_vars['cssstyle']; ?>
" />
		<input type="submit" class="button" value="Submit" />
	</div>
	</form> 
	</div>   
	<h2>Usage</h2>
	<p>
		There are 3 ways to use this software
	</p>
	<ul>
		<li>Using seperate qualification and race-result files
			<ul>
				<li>The resultfiles are stored in PATH_TO_RFACTOR\UserData\LOG\results</li>
				<li>Search for the 2 .xml files you want to be parsed. You&#39;ll need the qualification 
					(this is the one ending with SQ.xml), and the raceresult xml file (this is the one ending with SR.xml).</li>
				<li>Upload these files to your own webspace (as an example I have uploaded two files to 
					<a href="http://www.vrl-simracing.be/rfactorreport/qualify1070.xml">http://www.vrl-simracing.be/rfactorreport/qualify1070.xml</a> and
					<a href="http://www.vrl-simracing.be/rfactorreport/race1070.xml">http://www.vrl-simracing.be/rfactorreport/race1070.xml</a>.</li>
				<li>Copy these URL&#39;s and paste them into the to input fields on the rfactor-report website and click on the submit button.</li>
				<li>Give the complete rFactor-report URL to the persons interested in the report (for example: 
					<a href="http://www.vrl-simracing.be/rfactorreport/index.php?qualyfile=http%3A%2F%2Fwww.vrl-simracing.be%2Frfactorreport%2Fqualify1070.xml&amp;racefile=http%3A%2F%2Fwww.vrl-simracing.be%2Frfactorreport%2Frace1070.xml">
						http://www.vrl-simracing.be/rfactorreport/index.php?qualyfile=http%3A%2F%2Fwww.vrl-simracing.be%2Frfactorreport%2Fqualify1070.xml&amp;racefile=http%3A%2F%2Fwww.vrl-simracing.be%2Frfactorreport%2Frace1070.xml
						</a>);
				</li>
			</ul>
		</li>
		<li>Using one combined qualification/race result file
			<ul>
				<li>The resultfiles are stored in PATH_TO_RFACTOR\UserData\LOG\results</li>
				<li>Search for the xml files you want to be parsed.</li>
				<li>Upload this file to your own webspace (as an example I have uploaded two files to 
					<a href="http://www.vrl-simracing.be/rfactorreport/raceresult.xml">http://www.vrl-simracing.be/rfactorreport/raceresult.xml</a></li>
				<li>Copy this URL and paste it into the to the &#39;Combined result URL&#39; field on the rfactor-report website and click on the submit button.</li>
				<li>Give the complete rFactor-report URL to the persons interested in the report (for example: 
					<a href="http://www.vrl-simracing.be/rfactorreport/index.php?file=http%3A%2F%2Fwww.vrl-simracing.be%2Frfactorreport%2Fraceresult.xml">http://www.vrl-simracing.be/rfactorreport/index.php?file=http%3A%2F%2Fwww.vrl-simracing.be%2Frfactorreport%2Fraceresult.xml</a>); 
					<br />
					If you find that the URL&#39;s are to long you can create a short URL at the bottom of the report.
				</li>                    
			</ul>
		</li>
		<li>Using racecast
			<ul>
				<li>Browse to <a href="http://racecast.rfactor.net/">http://racecast.rfactor.net/</a> and search for the race you want to parse.</li>
				<li>Copy the URL of your racecast report (for example <a href="http://racecast.rfactor.net/?go=racedetails&amp;raceID=9769&amp;sessiontype=Race">http://racecast.rfactor.net/?go=racedetails&amp;raceID=9769&amp;sessiontype=Race)</a>
					to the &#39;Combined result URL&#39; field on the rfactor-report website and click on the submit button.</li>
				<li>Give the complete rFactor-report URL to the persons interested in the report</li>
			</ul>
		</li>
	</ul>
	
	<h2>Change Layout</h2>
	<p>
		Using CSS it is possible to change the way the rfactor-report looks to let it more match to the layout of your own website.
	</p>
	<h2>Usage</h2>

	<div>
		<form method="get" action="index.php">
		<div>
			<label for="cssstyle">CSS URL :</label>		
			<input type="text" id="cssstyle" name="cssstyle" size="70" />

			<input type="submit" class="button" value="Submit" />
		</div>
		</form>
		<ul>
			<li>Download the example CSS file <a href="style/rfactor-report.css">style/rfactor-report.css</a>.</li>
			<li>Modify this template to your own wishes. Documentation for what each element does is in the example CSS file.</li>
			<li>Upload your newly made CSS file to your own website.</li>
			<li>Enter the URL to this CSS in the inputfield and click on the submit button.</li>
			<li>You will now see that the layout of the page changed to your CSS</li>
			<li>When you now view a report you will see that it is in the layout you created.</li>
			<li>The CSS is a part of the URL. So if you give the URL from the report page to other people they will see it in the style you set.</li>
		</ul>
		<h2>Known bugs and things to add</h2>
		<ul>
			<li>No bugs known and no new features planned</li>
		</ul>
	</div>


</div><!--generateReport-->

</body>
</html>